package cn.ac.siom.query.service.impl;

import cn.ac.siom.query.dao.ITab_ThesisDao;
import cn.ac.siom.query.service.ITab_ThesisService;
import cn.ac.siom.query.vo.Tab_Thesis;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;

@Service
public class Tab_ThesisServiceImpl implements ITab_ThesisService {

    @Resource
    private ITab_ThesisDao tab_ThesisDao;


    @Override
    public List<Tab_Thesis> list() throws SQLException {
        List<Tab_Thesis> list =  this.tab_ThesisDao.findAll();
        return  list;
    }

    @Override
    public List<Tab_Thesis> list_Report() throws SQLException {
        List<Tab_Thesis> list =  this.tab_ThesisDao.findReport();
        return  list;
    }

    @Override
    public List<Tab_Thesis> list_Journal() throws SQLException {
        List<Tab_Thesis> list =  this.tab_ThesisDao.findJournal();
        return  list;
    }

    @Override
    public List<Tab_Thesis> list_Conference() throws SQLException {
        List<Tab_Thesis> list =  this.tab_ThesisDao.findConference();
        return  list;
    }

    @Override
    public List<Tab_Thesis> list_NO(Integer i_id) throws SQLException {
        List<Tab_Thesis> tab_Thesis=this.tab_ThesisDao.findNo(i_id);
        return tab_Thesis;
    }

    @Override
    public List<Tab_Thesis> list_Search(String keywords) throws SQLException {
        return this.tab_ThesisDao.findSearch(keywords);
    }
}

